package com.weilx959.spt.core.utils;

/**
 * 序列化工具类
 *
 * @author weilx
 * @since 2024年6月4日
 */
public class SerializeUtil {
    private SerializeUtil() {}

    public static boolean isBaseType(Class<?> clazz) {
        return clazz.isPrimitive() || clazz == String.class
            || clazz == Integer.class || clazz == Long.class || clazz == Double.class
            || clazz == Boolean.class || clazz == Character.class;
    }
}
